From 96ca6ebcded01eb6ac6402d08b18ffbd7c0235af Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 27 Oct 2014 12:44:50 -0700 Subject: [PATCH] Don't leave behind corrupt directories Ensure that a system `rm -rf target` will continue to work across test runs. --- tests/test_cargo_compile.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_cargo_compile.rs b/tests/test_cargo_compile.rs index afb48727d..58da5ca0e 100644 --- a/tests/test_cargo_compile.rs +++ b/tests/test_cargo_compile.rs @@ -1683,4 +1683,5 @@ test!(ignore_bad_directories { fs::mkdir(&foo.root().join("tmp"), io::USER_EXEC ^ io::USER_EXEC).unwrap(); assert_that(foo.process(cargo_dir().join("cargo")).arg("build"), execs().with_status(0)); + fs::chmod(&foo.root().join("tmp"), io::USER_DIR).unwrap(); }) -- 2.30.2